import numpy as np
import pandas as pd

# 示例数据
correct_list = [0.6, 0.8, 0.7, 0.9, 0.95]
incorrect_list = [0.55, 0.65, 0.75, 0.85, 0.92]

# 合并列表
all_values = correct_list + incorrect_list

# 创建bins
bins = np.linspace(0.5, 1, 6)  # 5个bin

# 统计每个bin的correct比例
hist, _ = np.histogram(all_values, bins=bins)
correct_hist, _ = np.histogram(correct_list, bins=bins)

# 计算比例
proportions = correct_hist / hist
print(proportions)
